<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php 
	if(!isset($_SESSION['userIdZing']))
	{
		session_start(); 
	}
	if(isset($_SESSION['userIdZing']))
	{
	?>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="css/bootstrap.css" rel="stylesheet">
	<link href="css/doc.css" rel="stylesheet">
	<link href="css/grid.css" rel="stylesheet">
	<link href="css/carousel.css" rel="stylesheet">
	<link href="css/jquery.bxslider.css" rel="stylesheet">
	<link type="text/css" rel="stylesheet" href="css/style.css" />
	
	<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
	<script>
		jQuery(document).ready(function(){
			$('.one_third').hover(
			function(){
				$(this).find('.contentinner').stop().animate({marginTop: 0});
				//console.log('hover');
			},function(){
				$(this).find('.contentinner').stop().animate({marginTop: '190px'});
			});
		});
	</script>
	<title>ZiGo - Cùng chia sẻ</title>
</head>
<body>
	
	<div class="zigowapper" id="zigo_container">
		<?php
			include ('/view/bannertop.php');
			include ('/view/menutop.php');
		?>
		<div id='contents'>
			<p class="title">DANH SÁCH "QUÁN NỔI BẬT"</p>
			<div class="borderhome row" id="topplace">
			</div>
			<div class="contentdouble">
				<div class="row">
					<div class="col-md-9 bordernone">
						<p class="title titlemid">LỜI BÌNH LUẬN MỚI</p>
						<div id="newfeed">
						</div>
					</div>
					<div class="col-md-3 bordernone">
						<div class='title titlemid'>ZiGo trên mobile</div>
						<a href="https://play.google.com/store/apps/details?id=com.kltn.zigo" target="_blank" ><img src="images/phienbanandroid.png" title="Cafe Tinh Tế"/></a>
						<div class='title titlemid'>PHÂN MỤC ẨM THỰC</div>
							<ul class='list-group foodcategories' id='foodcategories'>
							</ul>
					</div>
				</div>
			</div>
			<p class="title">QUÁN ĂN MỚI</p>
			<div id="newplace" class="row">
				<ul class='newest-place' id='newplacecontainer'>
				</ul>
			</div>
			
		</div>
	</div>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/holder.js"></script>
	<script type="text/javascript" src="js/underscore.min.js"></script>
	<script type="text/javascript" src="js/backbone.min.js"></script>
	<script type="text/javascript" src="js/model/topplace.js"></script>
	<script type="text/javascript" src="js/model/newfeedhome.js"></script>
	<script type="text/javascript" src="js/model/foodcategories.js"></script>
	<script type="text/javascript" src="js/model/newplace.js"></script>
	<script type="text/javascript" src="js/zigo.js"></script>
	
	<script type="text/template" id="topplace-item">
        <div class='placetop-rightcontainer'>
        <a href='./place.php?place_id=<%= place_id%>' class='avatar'>
			<img src='<%= url_avatar%><%=name_avatar %>' width='70' height='70' />
		</a>
        <div class='placename rightcontainer'><a href='./place.php?place_id=<%= place_id%>' ><%= stt%>. <%= place_name%></a></div>
                    
        </div>

        <hr style='margin-left: 7px; margin-right: 7px;margin-top: 0px;margin-bottom: 10px;'>
	</script>
	<script type="text/template" id="newfeed-item">
		<div class='media newcomment'>
			<a class='pull-left' href='./user.php?user_id_zing=<%= user_id_zing%>'>
			
			<img class='media-object imgnewfeed' src='<%= user_avatar_zing%>' alt='<%=user_name_zing%>' width='50' height='50'>
			
			</a>
			<div class='media-body detailcomment'>
				<h4 class='media-heading'> <a href='./user.php?user_id_zing=<%= user_id_zing%>' style='color: rgb(0, 36, 114);'><%= user_display_name%></a> đã bình luận tại <a href='./place.php?place_id=<%= place_id%>' style='color: blue;'><%= place_name %></a></h4>
				<%= detail_comment%> 
			</div>
			<hr style='margin-left: 20px; margin-right: 20px;'>
		</div>
	</script>
	<script type="text/template" id="foodcate-item">
		<a href='#' ><%= category_place_name %></a>
	</script>
	<script type="text/template" id="newplace-item">
		<a href='./place.php?place_id=<%= place_id%>' class='avatar'>
		<div class='thumb'>
			
				<img src='<%= url_avatar%><%= name_avatar%>' alt='' title='<%=place_name%>' />
			
		</div>
		
		<div class='content'>
			<div class='contentinner'>
				<div styly='font-weight: bold;'><%= place_name%></div>
			</div>
		</div>
		</a>
	</script>
	
	
</body>
<?php }?>
</html>